﻿#version 330

uniform mat4 world;

layout(location = 0) in vec3 in_position;
layout(location = 2) in vec2 in_texcoord;

uniform vec4 diffuseColor;

out vec2 texcoord;
out vec4 color;

void main(void)
{
	gl_Position = world * vec4(in_position, 1.0);
	texcoord = in_texcoord;
	color = diffuseColor;
}